﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.CompilerServices;
namespace OnlineVideos.Game
{
    public class PropertyChangedMessage<T> : PropertyChangedMessageBase
    {
        public PropertyChangedMessage(T oldValue, T newValue, string propertyName)
            : base(propertyName)
        {
            this.OldValue = oldValue;
            this.NewValue = newValue;
        }

        public PropertyChangedMessage(object sender, T oldValue, T newValue, string propertyName)
            : base(sender, propertyName)
        {
            this.OldValue = oldValue;
            this.NewValue = newValue;
        }

        public PropertyChangedMessage(object sender, object target, T oldValue, T newValue, string propertyName)
            : base(sender, target, propertyName)
        {
            this.OldValue = oldValue;
            this.NewValue = newValue;
        }

        public T NewValue
        {

            get
            {
                return this.NewValue;
            }

            private set
            {
                this.NewValue = value;
            }
        }

        public T OldValue
        {
            get
            {
                return this.OldValue;
            }

            private set
            {
                this.OldValue = value;
            }
        }
    }
}
